Skip to content

Conversation

@michaeldenes
Copy link
Member

@michaeldenes michaeldenes commented Aug 5, 2025

  • Chose the correct base branch (main for v3 changes, v4-dev for v4 changes)
  • Fixes #
  • Added tests
  • Added documentation

I’ve come across a bug in the PolyTEOS10 kernel used to calculate the density of seawater from the temperature and salinity fields. The kernel is based on equation (13) from https://www.sciencedirect.com/science/article/pii/S1463500315000566 where the density is determined from the summation of a vertical reference profile and a residual function (or density anomaly). Previously, the kernel only computed the density anomaly and was missing the vertical reference profile. At 0 m depth, the vertical reference profile component is 0, but is non-zero away from the surface.

This small pull-request updates the kernel to include the vertical reference profile component of the equation.

@michaeldenes michaeldenes marked this pull request as ready for review August 5, 2025 09:46
…sity value (and not the density anomaly value).
@erikvansebille
Copy link
Member

Ready to merge this in, @michaeldenes?

@erikvansebille erikvansebille merged commit a1c8b95 into main Aug 6, 2025
27 of 28 checks passed
@erikvansebille erikvansebille deleted the fix_polyteos_kernel branch August 6, 2025 14:07
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Aug 6, 2025
@erikvansebille erikvansebille restored the fix_polyteos_kernel branch August 6, 2025 14:07
@erikvansebille erikvansebille deleted the fix_polyteos_kernel branch August 6, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants